/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ControlLayer;

import DBLayer.DBSalesLine;
import DBLayer.IFDBSalesLine;
import ModelLayer.SalesLine;
import java.util.ArrayList;

/**
 *
 * @author Henrik-iMac
 */
public class CtrSalesLine {
    public CtrSalesLine(){
        
    }
    public ArrayList<SalesLine> getAllSalesLine(String wClause, boolean retrieveAssociation){
        IFDBSalesLine dbSalesLine = new DBSalesLine();
        ArrayList allSalesLine = new ArrayList();
        allSalesLine = dbSalesLine.getAllSalesLine(wClause, retrieveAssociation);
        return allSalesLine;
    }
    public int insertSalesLine(SalesLine salesLine){
        IFDBSalesLine dbSalesLine = new DBSalesLine();
        return dbSalesLine.insertSalesLine(salesLine);
    }
    public int deleteSalesLine(int id){
        IFDBSalesLine dbSalesLine = new DBSalesLine();
        return dbSalesLine.deleteSalesLine(id);
    }

}
